#include "HardDisk.h"

HardDisk::HardDisk() {

}

HardDisk::HardDisk(string pid, string brand, int stock, int price, int memory, bool portable)
	: Products( pid, brand, stock, price) {
		setMemory(memory);
		setPortable(portable);
}

int HardDisk::getMemory() {
	return this->memory;
}

void HardDisk::setMemory(int memory) {
	this->memory = memory;
}

bool HardDisk::getPortable() {
	return this->portable;
}

void HardDisk::setPortable(bool portable) {
	this->portable = portable;
}

void HardDisk::productInfo() {
	Products::productInfo();
	stringstream ss;
	ss << getMemory() << "GB";
	//cout << " |" << getMemory() << " |" << ( getPortable() ? "Yes" : "No" );
	cout << " | " << setw(12) << ss.str() << " | " << setw(10) << ( getPortable() ? "Yes" : "No" );
}
